package com.bothin.experiment4.utils;

import com.bothin.experiment4.model.NavSideNode;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by bothin
 * At 2019/12/16 13:10
 * Description:
 */
public class NavSideUtil {

    /**
     * 返回 侧导航栏的数据
     * @return
     */
    public static List<NavSideNode> getNavSideNode(){
        return new ArrayList<NavSideNode>(){{
            add(new NavSideNode("首页","layui-icon-home","/index",null));
            add(new NavSideNode("员工管理","layui-icon-user","javascript:;",new ArrayList<NavSideNode>(){{
                add(new NavSideNode("销售人员","","/employee/salesman/list",null));
                add(new NavSideNode("仓库管理员","","/employee/stockman/list",null));
            }}));
            add(new NavSideNode("客户管理","layui-icon-group","/customer/list",null));
            add(new NavSideNode("商品管理","layui-icon-app","/product/list",null));
            add(new NavSideNode("合同管理","layui-icon-read","javascript:;",new ArrayList<NavSideNode>(){{
                add(new NavSideNode("合同新增","","/contact/to/add",null));
                add(new NavSideNode("合同查询","","/contact/list",null));
            }}));
            add(new NavSideNode("数据统计","layui-icon-chart","javascript:;",new ArrayList<NavSideNode>(){{
                add(new NavSideNode("销售总额统计","","/statistics/company/to/sum",null));
                add(new NavSideNode("客户销售额统计","","/statistics/customer/to/analy",null));
                add(new NavSideNode("商品的销售额统计","","/statistics/product/to/analy",null));
            }}));
        }};
    }

    public static List<NavSideNode> getStockmanNavSideNode(){
        return new ArrayList<NavSideNode>(){{
            add(new NavSideNode("首页","layui-icon-home","/index",null));
            add(new NavSideNode("发货管理","layui-icon-form","javascript:;",new ArrayList<NavSideNode>(){{
                add(new NavSideNode("未发货","","/stockman/manage/out/list/unhandle",null));
                add(new NavSideNode("已发货","","/stockman/manage/out/list/handled",null));
            }}));
            add(new NavSideNode("进货管理","layui-icon-survey","javascript:;",new ArrayList<NavSideNode>(){{
                add(new NavSideNode("未处理","","/stockman/manage/in/list/unhandle",null));
                add(new NavSideNode("已处理","","/stockman/manage/in/list/handled",null));
                add(new NavSideNode("新增进货","","/stockman/manage/in/to/add",null));
            }}));
            add(new NavSideNode("物流管理","layui-icon-templeate-1","/logist/list",null));
        }};
    }
    public static List<NavSideNode> getSalesmanNavSideNode(){
        return new ArrayList<NavSideNode>(){{
            add(new NavSideNode("首页","layui-icon-home","/index",null));
            add(new NavSideNode("销售业绩","layui-icon-list","/salesman/contact/list",null));
            add(new NavSideNode("业绩统计","layui-icon-chart","/salesman/to/analy",null));
        }};
    }
}
